﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CCH.Lib;

public partial class _1002 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            string type = Request.QueryString["type"];

            this.ObjectDataSource1.SelectParameters[0].DefaultValue = type;
            this.ListView1.DataBind();

            //1.最新消息
            //2.活動訊息
            //3.病友訊息
            //4.衛教資訊
            //5.病友與你分享
            //6.專業文章
            //7.常見問題
            string[] name = { "", "lastnews", "events_info", "companion", "health_edu_pro", "companion_share", "pro-articles", "FAQ" };
            string[] head = { "", "lastnews_list_head", "events_info_list_head", "companion_list_head", "health_edu_pro_list_head", "companion_share_list_head", "pro-articles_list_head", "FAQ_list_head" };
            
            this.div_1.Attributes["class"] = name[int.Parse(type)];
            this.div_head.Attributes["class"] = head[int.Parse(type)];
        }
    }

   
    
}